package com.zcily.demo.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("ac_user")
@ApiModel(value = "User对象", description = "操作员表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("操作员id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("登录帐号")
    @TableField("username")
    private String username;

    @ApiModelProperty("操作员姓名")
    @TableField("nickname")
    private String nickname;

    @ApiModelProperty("密码")
    @TableField("password")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;

    @ApiModelProperty("操作员状态：1 正常；2 冻结")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("所属机构id")
    @TableField("org_id")
    private Integer orgId;

    @ApiModelProperty("联系电话")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty("电子邮件")
    @TableField("email")
    private String email;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("创建者id")
    @TableField("creator_by")
    private String creatorBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;
}
